package com.hqyj.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hqyj.pojo.GoodsIndex;
import com.hqyj.pojo.GoodsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.pojo.GoodsQueryParameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2023-02-03 09:50:32
 */
@Mapper
public interface GoodsInfoMapper extends BaseMapper<GoodsInfo> {
     //查询商品首页信息
    List<GoodsIndex> queryGoodsInfoForm ();
    //根据商品类型查询商品信息
    Page<GoodsInfo> queryGoodsInfoByGoodsTypeId (Page<GoodsInfo> page,@Param("g") GoodsQueryParameter parameter);
}
